package cn.yll.gateway.service;

import cn.yll.common.exception.BsException;
import cn.yll.common.module.RestModel;

import java.io.IOException;

/**
 * 验证码处理
 *
 * @author ruoyi
 */
public interface ValidateCodeService
{
    /**
     * 生成验证码
     */
    public RestModel createCaptcha() throws IOException, BsException;

    /**
     * 校验验证码
     */
    public void checkCaptcha(String key, String value) throws BsException;
}
